﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.FinanceModule.Models.DataMaintains.CreateOrEditOtherCheckModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_FinanceModule_DataMaintains_EditOtherCheck") + ": " + Model.OtherCheck.CheckName) : L("Pages_FinanceModule_DataMaintains_CreateOtherCheck")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">
        <input type="hidden" id="CheckType" name="CheckType" value="@Model.CheckType" />
        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.OtherCheck.Id" />
        }
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            @*<select class="form-control edited" id="CheckTypeId" name="CheckTypeId" onselect="@Model.CheckType">
                <option value="1">项目</option>
                <option value="2">客户</option>
                <option value="3">人员</option>
                
            </select>*@
           @Html.DropDownList("CheckTypeId", Model.GetCheckTypeList.Select(a => a.ToSelectListItem()), new { @class = "form-control edited" })
            <label>@L("Pages_FinanceModule_OtherChecks_GridColumn_Checktype")</label>

        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="CheckName" value="@Model.OtherCheck.CheckName" class="form-control edited" required maxlength="@BillOtherCheck.MaxNameLength" />
            <label>@L("Pages_FinanceModule_OtherChecks_GridColumn_CheckName")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="Remark" value="@Model.OtherCheck.Remark" class="form-control edited" maxlength="@BillOtherCheck.MaxRemarkLength" />
            <label>@L("Pages_FinanceModule_OtherChecks_GridColumn_Remark")</label>
        </div>
    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")





